# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
pkgname=mmix
pkgver=0_git20190219
pkgrel=0
pkgdesc="Assembler and instruction level simulator for the MMIX platform"
url="http://www.mmix.cs.hm.edu/exe/index.html"
# s390x and riscv64 blocked by texlive
arch="all !s390x !riscv64"
license="custom"
makedepends="texlive" # ctangle is needed to compile .w files
_commit=ceed178e11ad19010b67c9282544b980984fdde3
source="$pkgname-$pkgver.tar.bz2::https://gitlab.lrz.de/mmix/mmixware/-/archive/$_commit/mmixware-$_commit.tar.bz2"
builddir="$srcdir/mmixware-$_commit"
options="!check" # contains no unit test suite

build() {
	make
}

package() {
	mkdir -p "$pkgdir/usr/bin"
	install -Dm 755 mmix mmixal -t "$pkgdir/usr/bin"
	install -Dm 644 -t "$pkgdir"/usr/share/licenses/$pkgname/ boilerplate.w
}


sha512sums="05400b2427aee5236237611e0da9ccb245ebf84d37f8300fcbf871df6cee2b6d1651015af7dfd2b149ea278d357b77927669fd20e1e7d90bf7d0c9f1f0efc202  mmix-0_git20190219.tar.bz2"
